package com.hoshiicloud.user.param.usercenter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 用户收货地址修改参数实体
 *
 * @author : yangcheng
 * @date : 2019/5/11 10:35
 * @mail : maiboyc@163.com
 **/
@ApiModel
@Data
public class MemberAddressUpdateParam {

    // ID
    @NotNull(message = "ID不能为空")
    @ApiModelProperty(name = "id", value = "ID", required = true, dataType = "java.lang.Long", example = "3171776001692664100")
    private Long id;

    // 用户主键
    @NotNull(message = "用户主键ID不能为空")
    @ApiModelProperty(name = "userId", value = "用户主键ID", required = true, dataType = "java.lang.Long", example = "3171776001692664000")
    private Long userId;

    // 收货人姓名
    @NotNull(message = "收货人姓名不能为空")
    @ApiModelProperty(name = "name", value = "收货人姓名", required = true, dataType = "java.lang.String", example = "张大大")
    private String name;

    // 身份证
    @NotNull(message = "身份证不能为空")
    @ApiModelProperty(name = "idCard", value = "身份证", required = true, dataType = "java.lang.String", example = "42032419880904051X")
    private String idCard;

    // 手机号码
    @NotNull(message = "手机号码不能为空")
    @ApiModelProperty(name = "phone", value = "手机号码", required = true, dataType = "java.lang.String", example = "18289780098")
    private String phone;

    // 固话
    @NotNull(message = "固话不能为空")
    @ApiModelProperty(name = "telephone", value = "固话", required = true, dataType = "java.lang.String", example = "0591-8678573")
    private String telephone;

    // 邮编
    @NotNull(message = "邮编不能为空")
    @ApiModelProperty(name = "postcode", value = "邮编", required = true, dataType = "java.lang.String", example = "350015")
    private String postcode;

    // 省份
    @NotNull(message = "省份不能为空")
    @ApiModelProperty(name = "province", value = "省份", required = true, dataType = "java.lang.String", example = "福建省")
    private String province;

    // 省份code
    @NotNull(message = "省份code不能为空")
    @ApiModelProperty(name = "provinceCode", value = "省份code", required = true, dataType = "java.lang.String", example = "350000")
    private String provinceCode;

    // 城市
    @NotNull(message = "城市不能为空")
    @ApiModelProperty(name = "city", value = "城市", required = true, dataType = "java.lang.String", example = "福州市")
    private String city;

    // 城市code
    @NotNull(message = "城市code不能为空")
    @ApiModelProperty(name = "cityCode", value = "城市code", required = true, dataType = "java.lang.String", example = "350000")
    private String cityCode;

    // 区域
    @NotNull(message = "区域不能为空")
    @ApiModelProperty(name = "area", value = "区域", required = true, dataType = "java.lang.String", example = "马尾区")
    private String area;

    // 区域code
    @NotNull(message = "区域code不能为空")
    @ApiModelProperty(name = "areaCode", value = "区域code", required = true, dataType = "java.lang.String", example = "350015")
    private String areaCode;

    // 街道地址
    @NotNull(message = "街道地址不能为空")
    @ApiModelProperty(name = "address", value = "街道地址", required = true, dataType = "java.lang.String", example = "阳光城SOHOA栋2101")
    private String address;

    // 是否默认地址（0-否 1- 是）
    @NotNull(message = "是否默认地址不能为空")
    @ApiModelProperty(name = "defAddress", value = "是否默认地址", required = true, dataType = "java.lang.Integer", example = "1")
    private Integer defAddress;

}  